import request from '@/utils/request'

/**
 * tag 上传图片接口
 */
export const img = data => request({
  url: '/api/admin/upload/img',
  method: 'post',
  data
})

/**
 * nav列表
 */
export const getNavList = params => request({
  url: '/api/admin/nav/getNavList',
  method: 'get',
  params
})

/**
 * tag 列表
 */
export const getTagList = params => request({
  url: '/api/admin/tag/getTagList',
  method: 'get',
  params
})

/**
 * 添加文章
 * addArticle
 */
export const addArticle = data => request({
  url: '/api/admin/article/addArticle',
  method: 'post',
  data
})

